package com.decheng.servlet.base;

import com.decheng.common.MyTemplateEngine;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * @Author 孔德成
 * @Slogan 致敬大师，致敬未来的你
 */
public class VIewServlet extends HttpServlet {

    /**
     * 模板引擎，调用 processTemplate 方法渲染模版
     */
    public static MyTemplateEngine engine;

    @Override
    public void init() throws ServletException {
        engine = MyTemplateEngine.getInstance(this.getServletContext());
    }
}
